Optimal. Leaf size=56 \[ \frac{a^2 \tan ^{-1}\left (\frac{\sqrt{b} \sinh (x)}{\sqrt{a+b}}\right )}{b^{5/2} \sqrt{a+b}}-\frac{(a-b) \sinh (x)}{b^2}+\frac{\sinh ^3(x)}{3 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0729572, antiderivative size = 56, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {3186, 390, 205} \[ \frac{a^2 \tan ^{-1}\left (\frac{\sqrt{b} \sinh (x)}{\sqrt{a+b}}\right )}{b^{5/2} \sqrt{a+b}}-\frac{(a-b) \sinh (x)}{b^2}+\frac{\sinh ^3(x)}{3 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3186
Rule 390
Rule 205
Rubi steps
\begin{align*} \int \frac{\cosh ^5(x)}{a+b \cosh ^2(x)} \, dx &=\operatorname{Subst}\left (\int \frac{\left (1+x^2\right )^2}{a+b+b x^2} \, dx,x,\sinh (x)\right )\\ &=\operatorname{Subst}\left (\int \left (-\frac{a-b}{b^2}+\frac{x^2}{b}+\frac{a^2}{b^2 \left (a+b+b x^2\right )}\right ) \, dx,x,\sinh (x)\right )\\ &=-\frac{(a-b) \sinh (x)}{b^2}+\frac{\sinh ^3(x)}{3 b}+\frac{a^2 \operatorname{Subst}\left (\int \frac{1}{a+b+b x^2} \, dx,x,\sinh (x)\right )}{b^2}\\ &=\frac{a^2 \tan ^{-1}\left (\frac{\sqrt{b} \sinh (x)}{\sqrt{a+b}}\right )}{b^{5/2} \sqrt{a+b}}-\frac{(a-b) \sinh (x)}{b^2}+\frac{\sinh ^3(x)}{3 b}\\ \end{align*}
Mathematica [A] time = 0.161387, size = 61, normalized size = 1.09 \[ -\frac{a^2 \tan ^{-1}\left (\frac{\sqrt{a+b} \text{csch}(x)}{\sqrt{b}}\right )}{b^{5/2} \sqrt{a+b}}-\frac{(4 a-3 b) \sinh (x)}{4 b^2}+\frac{\sinh (3 x)}{12 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.036, size = 177, normalized size = 3.2 \begin{align*} -{\frac{1}{3\,b} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-3}}+{\frac{1}{2\,b} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-2}}+{\frac{a}{{b}^{2}} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-1}}-{\frac{1}{b} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-1}}+{{a}^{2}\arctan \left ({\frac{1}{2} \left ( 2\,\tanh \left ( x/2 \right ) \sqrt{a+b}+2\,\sqrt{a} \right ){\frac{1}{\sqrt{b}}}} \right ){b}^{-{\frac{5}{2}}}{\frac{1}{\sqrt{a+b}}}}-{{a}^{2}\arctan \left ({\frac{1}{2} \left ( -2\,\tanh \left ( x/2 \right ) \sqrt{a+b}+2\,\sqrt{a} \right ){\frac{1}{\sqrt{b}}}} \right ){b}^{-{\frac{5}{2}}}{\frac{1}{\sqrt{a+b}}}}-{\frac{1}{3\,b} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-3}}-{\frac{1}{2\,b} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-2}}+{\frac{a}{{b}^{2}} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-1}}-{\frac{1}{b} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-1}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{{\left (b e^{\left (6 \, x\right )} - 3 \,{\left (4 \, a - 3 \, b\right )} e^{\left (4 \, x\right )} + 3 \,{\left (4 \, a - 3 \, b\right )} e^{\left (2 \, x\right )} - b\right )} e^{\left (-3 \, x\right )}}{24 \, b^{2}} + \frac{1}{32} \, \int \frac{64 \,{\left (a^{2} e^{\left (3 \, x\right )} + a^{2} e^{x}\right )}}{b^{3} e^{\left (4 \, x\right )} + b^{3} + 2 \,{\left (2 \, a b^{2} + b^{3}\right )} e^{\left (2 \, x\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.03053, size = 3143, normalized size = 56.12 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]